<template>
  <div class="home">
    <div class="head">
      <p @click="state.router.go('-1')">
        <van-icon name="arrow-left" />
      </p>
      <p>二手房</p>
      <p></p>
    </div>
  </div>
</template>

<script>
import { defineComponent ,reactive} from "vue";
import {useRouter} from "vue-router"
export default defineComponent({
  components: {},

  setup(){
    const state=reactive({
      router:useRouter()
    })


    return {
      state
    }
  }
});
</script>

<style lang="scss" scoped>
.home {
  width: 100%;
  height: 100%;
}
.head {
  height: 8%;
  background: #1887f6;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  font-size: 17px;
  color: #fff;
}
</style>
